package com.gzcwt.entity;

import java.sql.Timestamp;

/**
 * Resource entity. @author MyEclipse Persistence Tools
 */

public class Resource implements java.io.Serializable {

	// Fields

	@Override
	public String toString() {
		return "Resource [id=" + id + ", RTypeSn=" + RTypeSn + ", name=" + name
				+ ", url=" + url + ", uploadTime=" + uploadTime + ", status="
				+ status + ", privilegeSn=" + privilegeSn + ", hasTest="
				+ hasTest + ", testSn=" + testSn + ", resourceType="
				+ resourceType + ", resourceName=" + resourceName + "]";
	}

	private Integer id;
	private Integer RTypeSn;
	private String name;
	private String url;
	private Timestamp uploadTime;
	private Integer status;
	private Integer privilegeSn;
	private Short hasTest;
	private String testSn;
	private Integer resourceType;
	private String resourceName;

	// Constructors

	/** default constructor */
	public Resource() {
	}

	/** minimal constructor */
	public Resource(Integer RTypeSn, String name, String url,
			Timestamp uploadTime, Integer status, Integer privilegeSn,
			Short hasTest) {
		this.RTypeSn = RTypeSn;
		this.name = name;
		this.url = url;
		this.uploadTime = uploadTime;
		this.status = status;
		this.privilegeSn = privilegeSn;
		this.hasTest = hasTest;
	}

	/** full constructor */
 

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public Resource(Integer id, Integer rTypeSn, String name, String url,
			Timestamp uploadTime, Integer status, Integer privilegeSn,
			Short hasTest, String testSn, Integer resourceType,
			String resourceName) {
		super();
		this.id = id;
		RTypeSn = rTypeSn;
		this.name = name;
		this.url = url;
		this.uploadTime = uploadTime;
		this.status = status;
		this.privilegeSn = privilegeSn;
		this.hasTest = hasTest;
		this.testSn = testSn;
		this.resourceType = resourceType;
		this.resourceName = resourceName;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getRTypeSn() {
		return this.RTypeSn;
	}

	public void setRTypeSn(Integer RTypeSn) {
		this.RTypeSn = RTypeSn;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getResourceType() {
		return resourceType;
	}

	public void setResourceType(Integer resourceType) {
		this.resourceType = resourceType;
	}

	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public Timestamp getUploadTime() {
		return this.uploadTime;
	}

	public void setUploadTime(Timestamp uploadTime) {
		this.uploadTime = uploadTime;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getPrivilegeSn() {
		return this.privilegeSn;
	}

	public void setPrivilegeSn(Integer privilegeSn) {
		this.privilegeSn = privilegeSn;
	}

	public Short getHasTest() {
		return this.hasTest;
	}

	public void setHasTest(Short hasTest) {
		this.hasTest = hasTest;
	}

	public String getTestSn() {
		return this.testSn;
	}

	public void setTestSn(String testSn) {
		this.testSn = testSn;
	}

}